package ren.xbcr.schoolbus.client.util;

import android.content.Context;
import android.os.AsyncTask;

import ren.xbcr.schoolbus.client.domain.LoginUser;
import ren.xbcr.schoolbus.client.service.SchoolBusService;

/**
 * Created by Jian on 2015/11/7.
 */
public class VerifyCodeTask<T> extends AsyncTask<Void, Void, Boolean> {

    private String mTelephone;

    public VerifyCodeTask(String telephone) {
        mTelephone = telephone;
    }

    @Override
    protected Boolean doInBackground(Void... params) {
        // TODO: attempt authentication against a network service.
        Boolean isLoginSuccess = false;
        // Simulate network access.
        SchoolBusService schoolBusService = new SchoolBusService();
        schoolBusService.sendVerifyCode(mTelephone);

        return true;
    }

    @Override
    protected void onPostExecute(final Boolean success) {

    }
}
